﻿using ETModel;
using UnityEngine;
using UnityEngine.UI;

namespace ETHotfix
{
	[ObjectSystem]
	public class UIShowInfoComponentSystem : AwakeSystem<UIShowInfoComponent>
	{
		public override void Awake(UIShowInfoComponent self)
		{
			self.Awake();
		}
	}
	
	public class UIShowInfoComponent : Component
	{
        public GameObject Panel;
		public Text Text;

		public void Awake()
		{
			ReferenceCollector rc = this.GetParent<UI>().GameObject.GetComponent<ReferenceCollector>();

            Panel = rc.Get<GameObject>("Panel");
            Text = rc.Get<GameObject>("Text").GetComponent<Text>();
		}
		

	}
}
